Skip to content

feat(agystack): encode Antigravity invariants and align skill catalog - #23

Merged
jtaroreh merged 2 commits into
mainfrom
feat/agystack-pr1-invariants
Nov 23, 2026
Merged

jtaroreh merged 2 commits into
mainfrom
feat/agystack-pr1-invariants

Conversation

@jtaroreh

Copy link
Copy Markdown
Owner

Why

Upstream ports and catalog edits drifted across docs and setup instructions. Seven on-disk skills disappeared from README.md, a nonexistent /grill-me skill lingered in the README table and examples, README.md and docs/guide/08-principles.md reported 23 principles instead of 24, and skills/setup-agystack/SKILL.md still wrote pro-default model blocks that disagreed with agystack-models.md. This PR encodes agystack's native Antigravity invariants and README catalog checks in automated tests so drift fails CI.

Scope

  • tests/test_antigravity_invariants.py adds TestAntigravityInvariants and find_cursor_leakage covering Brain Artifact deliverables, three-tier parallel routing, send_message iterative worker loops, browser_subagent and Surface Precedence Hierarchy, permissioned-github recovery, skills/poteto-mode/playbooks/orchestrate.md, active role keys validated against setup_runtime.parse_model_config, and dynamic Cursor leakage scanning across skills/**/*.md, rules/, and agents/.
  • tests/test_skill_catalog.py adds test_readme_indexes_all_non_principle_skills and test_readme_has_no_ghost_skills checking every non-principle-* skill row, markdown link target, uniqueness, all the examples slash commands, and the 23 playbooks table against disk.
  • README.md updates twenty-three playbooks to 23 playbooks, updates twenty-three principles to twenty-four, updates the model-tier summary to match agystack-models.md, removes the ghost /grill-me row and grill-me: example, and adds the seven unlisted skills (benchmark-checklist, correct, create-formal-verification-skill, in-your-own-words, ketchup, loop, sharpen) to the all skills table.
  • docs/guide/08-principles.md updates 23 principles and ## The 23, briefly to 24 principles and ## The 24, briefly.
  • skills/setup-agystack/SKILL.md aligns Step 4's role list and Step 5's config block with agystack-models.md, and adds an optional /create-formal-verification-skill offer in Step 7.
  • agystack-models.md removes two extra trailing blank lines while keeping setup_runtime.py --doctor green.

Tradeoffs

  • test_active_role_keys_defined_and_consumed validates consumption for role keys already referenced in skills/ rather than editing out-of-scope skill files to wire unused keys such as arena cross-judge pool, judgment and prose, and hardest tasks.
  • find_cursor_leakage strips only exact negative-glob phrases targeting ~/.cursor/projects/*/ and allows only legacy mapping table rows in skills/poteto-mode/references/antigravity-tools.md so documentation warnings pass while unguarded .cursor or Cursor tool tokens fail.

Blast Radius

This PR touches only two test modules and four documentation or model-config files. Existing plugin runtime behavior, hooks, and Cloud Run scripts stay unchanged. Two /grill-me references outside this six-file scope in docs/guide/04-design.md and skills/architect/SKILL.md remain untouched.

Verification

All checks ran on HEAD at c203bc22680ed0633239bf2008939119127cbe67 after the final edit.

  • ruff check . passed with zero lint errors.
  • pytest -v tests/ passed 412 tests with 153 subtests passed and 3 skipped live GCS credential tests in tests/test_live_cloud_bidirectional.py.
  • bun test in skills/poteto-mode/scripts passed 47 tests across 4 files after bun install --frozen-lockfile, and bun run typecheck passed.
  • python3 skills/setup-agystack/scripts/setup_runtime.py --doctor returned status: "OK", confirmed under both default and isolated HOME environments.
  • bash scripts/package-plugin.sh --test verified the agystack v0.17.0 archive dry-run with agy CLI absent on host.
  • grep -rnE "twenty-three|23 principles|grill-me" README.md docs/guide/08-principles.md exited 1 with zero matches.
  • git diff --name-only origin/main..HEAD returned only the six scoped files.

…ack defaults

Update README.md and docs/guide/08-principles.md to reflect 24 principles and 23 playbooks, replace the removed /grill-me references with the seven unlisted skills, align README model tier summary and setup-agystack Steps 4-7 with agystack-models.md, and trim trailing blank lines in agystack-models.md.
Add tests/test_antigravity_invariants.py covering Brain Artifacts, three-tier routing, send_message loops, browser_subagent Surface Precedence Hierarchy, permissioned-github recovery, orchestrate.md, role keys, and dynamic Cursor leakage scanning. Extend tests/test_skill_catalog.py to verify every non-principle skill is linked in README.md and block ghost skills, broken links, or playbook drift.
@jtaroreh

Copy link
Copy Markdown
Owner Author

Verification Verdict: CLEAN at c203bc22680ed0633239bf2008939119127cbe67

  • Unit & Gates: ruff check ., pytest -v tests/ (412 passed, 3 skipped, 153 subtests), bun test (47 passed), setup_runtime.py --doctor (OK), scripts/package-plugin.sh --test all exited 0; CI test (3.11) and test (3.12) SUCCESS.
  • Live (10/10 PASS): test_antigravity_invariants.py (9 passed), cursor-leak mutation check (mutant exit 1, clean exit 0), test_skill_catalog.py (10 passed), core suites (59 passed, 137 subtests), --doctor, package-plugin.sh --test, agystack-models.md vs setup-agystack parity (17/17 roles match), drift grep (exit 1, 0 matches), ruff check ., and bun test (47 passed). Receipts in /tmp/swarm-pr1/.
  • Perf (PASS): 5 interleaved runs of pytest -q tests/ gave trunk median 22703.9 ms vs PR-1 median 22573.2 ms (delta -130.7 ms, budget <= 250 ms); targeted tests median 135.4 ms.
  • Independent Audit (PASS): Strict 6-file scope verified; zero Cursor leakage, zero unresolved Bugbot/review threads, and technical-writing / unslop compliant.
  • Stack position: Root PR feat(agystack): encode Antigravity invariants and align skill catalog #23 appended cleanly off main (3a7df99).

@jtaroreh

Copy link
Copy Markdown
Owner Author

Independent Verification Verdict: PASS+NOTES

Verified PR #23 on detached checkout of origin/feat/agystack-pr1-invariants at c203bc22680ed0633239bf2008939119127cbe67 (git patch-id --stable: ab79303fe7b3a56891789c04c129bd55e25aff58).

Checks Run

  • ruff check . — passed (0 lint errors).
  • pytest -v tests/ — 412 passed, 3 skipped, 153 subtests passed (3 skipped tests are live GCS tests in tests/test_live_cloud_bidirectional.py; targeted pytest -v tests/test_antigravity_invariants.py tests/test_skill_catalog.py passed 19/19).
  • cd skills/poteto-mode/scripts && bun run typecheck && bun test — after bun install --frozen-lockfile in the fresh worktree, tsc --project tsconfig.json --noEmit --strict passed and bun test passed 47/47 tests across 4 files (159 assertions).
  • python3 skills/setup-agystack/scripts/setup_runtime.py --doctor — returned status: "OK" under both default HOME and an isolated temporary HOME reading this checkout's agystack-models.md (22 parsed role entries).
  • bash scripts/package-plugin.sh --test — passed package dry-run for agystack v0.17.0 (agy CLI absent on host, so strict CLI validation was skipped).
  • bash -n scripts/package-plugin.sh skills/poteto-mode/scripts/worktree-audit.sh skills/show-me-your-work/scripts/log.sh — passed (exit 0).
  • gh pr view 23 --json reviewDecision,mergeable,mergeStateStatus,statusCheckRollup — MERGEABLE, CLEAN, reviewDecision unset (""), CI test (3.11) and test (3.12) both COMPLETED / SUCCESS.

Diff Review & Notes

All six changed files (README.md, agystack-models.md, docs/guide/08-principles.md, skills/setup-agystack/SKILL.md, tests/test_antigravity_invariants.py, tests/test_skill_catalog.py) match the PR scope with no unintended edits or Cursor leakage.

Non-blocking follow-up notes outside PR #23's scope:

  1. Pre-existing twenty-three playbooks phrasing remains in docs/guide/02-poteto-mode.md and skills/agystack/SKILL.md.
  2. Pre-existing /grill-me references remain in docs/guide/04-design.md and skills/architect/SKILL.md (as noted in the PR description).
  3. skills/poteto-mode/SKILL.md (line 101) and skills/poteto-mode/playbooks/{bug-fix,perf-issue,hillclimb}.md still describe pro defaults in prose rather than inherit, and test_active_role_keys_defined_and_consumed does not yet assert skill-file consumption for feature, refactoring, bug-fix, perf-issue, hillclimb, judgment and prose, hardest tasks, or arena cross-judge pool.
  4. skills/poteto-mode/scripts requires bun install --frozen-lockfile on a clean checkout before bun run typecheck finds bun-types.

@jtaroreh
jtaroreh merged commit 59bde8c into main Nov 23, 2026
2 checks passed
@jtaroreh
jtaroreh deleted the feat/agystack-pr1-invariants branch November 23, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant